package com.zhoug.router;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * 初始化
 *
 * @Author 35574
 * @Date 2020/11/5
 * @Description
 */
public class RouterInit {

    public static void init(Application application, boolean debug) {
        //必须在init之前
        if (debug) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(application);
    }

}

